package com.jiyun.controller;

import com.jiyun.common.R.R;
import com.jiyun.service.WorldCurrenciesService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("world")
public class WorldCurrenciesController {
    @Autowired
    private WorldCurrenciesService worldCurrenciesService;

    @GetMapping("findAll")
    @ApiOperation("货币列表查询")
    public R findAllWorld(){
        return R.ok().data("list",worldCurrenciesService.list());
    }
}
